package Ar;

import java.util.Arrays;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class No_3 {
    public static void main(String[] args) {
        int max,min;
        max = min = -1;
        for (int i = 0; i < 10 ; i++) {
            int[] nums = {(int)(100*Math.random())};
            for (int j:nums) {
                System.out.print(j+"\t");
                if (min==-1){
                    min = j;
                }
                if (j>max){
                    max = j;
                }
                if (j<min){
                    min = j;
                }
            }
        }
        System.out.println();
        System.out.println("最大的是："+max+"\t最小的是："+min);
    }
}
